import {Injectable} from "@angular/core";
import {PageParam} from "./api.service";
import {HttpUtils} from "../utils/http.utils";
import {USER} from "../service/user.service";
import {ParamsModel} from "../model/params.model";
import moment from "moment"

export class CleaningModel {
  title:string;
  payMoney:number;
  apartmentName:string;
  houseNo:string;
  serviceTime:'2017-01-06 01:07:09 ';
  yData:string;
  dData:string;
  hData:string
  constructor(resp:any){
    this.yData=resp.moment('serviceTime').format('YYYY-MM-dd');
    this.dData=resp.moment('serviceTime').format('DDDD');
    this.hData=resp.moment('serviceTime').format('H:mm');

  }

}


